<template>
	<view>
		<view class="">
			<text>名字:  {{user_name}}</text>
		</view>
		<view class="">
			<text>地址:  {{address}}</text>
		</view>
		<view class="">
			<text>电话:  {{phone}}</text>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				address:"",
				user_name:"",
				phone:""
			}
		},
		onLoad(options) {
			let buyer_id=options.buyer_id
			this.getAddress(buyer_id)
		},
		methods: {
			getAddress(id){
				var that=this;
				uni.showLoading();
				uniCloud.callFunction({
					name:"getBuyerAddress",
					data:{
						"buyer_id":id,
					},
					success(res) {
						uni.hideLoading()
						let msg=res.result.msg
						that.address=msg.address
						that.user_name=msg.user_name
						that.phone=msg.phone
					}
				})
			}
		}
	}
</script>

<style>

</style>
